package com.example.myspringbootpj.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.Size;
import java.time.LocalDateTime;

public class User {
    @TableId(type = IdType.AUTO)
    private String user_id;
    @Size(min = 6, max = 20, message = "密码长度应在6到20位之间")
    private String user_password;
    private String user_name;
    private LocalDateTime user_not_use;
    // 将user_image属性类型改为String，用于存储图片路径
    private String user_image;

    private int user_kubi;

    // 以下是各属性的Getter和Setter方法
    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getUser_password() {
        return user_password;
    }

    public void setUser_password(String user_password) {
        this.user_password = user_password;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public LocalDateTime getUser_not_use() {
        return user_not_use;
    }

    public void setUser_not_use(LocalDateTime user_not_use) {
        this.user_not_use = user_not_use;
    }

    public String getUser_image() {
        return user_image;
    }

    public void setUser_image(String user_image) {
        this.user_image = user_image;
    }

    public int getUser_kubi() {
        return user_kubi;
    }

    public void setUser_kubi(int user_kubi) {
        this.user_kubi = user_kubi;
    }

    @Override
    public String toString() {
        return "User{" +
                "user_id='" + user_id + '\'' +
                ", user_password='" + user_password + '\'' +
                ", user_name='" + user_name + '\'' +
                ", user_not_use=" + user_not_use +
                ", user_image=" + user_image +
                ", user_kubi=" + user_kubi +
                '}';
    }
}
